package me.jessyan.mvparms.demo.mvp.ui.adapter;

import android.view.View;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

import me.jessyan.mvparms.demo.R;
import me.jessyan.mvparms.demo.mvp.ui.holder.PayCostRecordHloder;

/**
 * @author DrChen
 * @Date 2019/3/8 0008.
 * qq:1414355045
 */
public class PayCostRecordAdapter extends DefaultAdapter<String>{
    public PayCostRecordAdapter(List<String> infos) {
        super(infos,true);
    }

    @Override
    public BaseHolder<String> getHolder(View v, int viewType) {
        return new PayCostRecordHloder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_pay_record;
    }
}
